home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 June
/
EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso
/
earcd
/
comm1
/
intsdkss.lha
/
include
/
clib
/
socket_protos.h
< prev
Wrap
C/C++ Source or Header
|
1996-04-09
|
4KB
|
118 lines
/*
** clib/socket_protos.h
** (used to live as ss/socket.h)
*/
#ifndef _CLIB_SOCKET_H
#define _CLIB_SOCKET_H
#include <exec/types.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <errno.h>
extern struct Library *SockBase;
#ifndef SOCKVER
#define SOCKVER 8
#endif
#ifndef SOCKNAME
#define SOCKNAME "inet:libs/socket.library"
#endif
/* prototypes */
int accept (int, struct sockaddr *, int *);
int bind (int, struct sockaddr *, int );
void cleanup_sockets ( void ) ;
int connect (int, struct sockaddr *, int);
void endhostent ( void );
void endnetent ( void );
void endprotoent ( void );
void endpwent( void );
void endservent ( void );
int getdomainname (char *, int);
gid_t getgid (void);
int getgroups (int, gid_t *);
int get_h_errno ( void );
struct hostent *gethostbyaddr ( char *, int, int );
struct hostent *gethostbyname ( char * );
struct hostent *gethostent ( void );
int gethostname (char *, int);
char *getlogin (void);
struct netent *getnetbyaddr ( long, int );
struct netent *getnetbyname ( char * );
struct netent *getnetent ( void );
int getpeername ( int, struct sockaddr *, int * );
struct protoent *getprotobyname ( char * );
struct protoent *getprotobynumber ( int );
struct protoent *getprotoent ( void );
struct passwd *getpwent( void ) ;
struct passwd *getpwnam( char * );
struct passwd *getpwuid( uid_t );
struct state *get_res ( void );
struct servent *getservent ( void );
struct servent *getservbyname ( char *, char * );
struct servent *getservbyport ( u_short, char * );
int getsockname ( int, struct sockaddr *, int * );
int getsockopt ( int, int, int, char *, int * );
uid_t getuid (void);
mode_t getumask (void);
short get_tz(void);
u_long inet_addr ( char * );
int inet_aton (const char *cp, struct in_addr *addr);
int inet_lnaof ( struct in_addr );
struct in_addr inet_makeaddr ( int, int );
int inet_netof ( struct in_addr );
int inet_network ( char * );
char *inet_ntoa ( struct in_addr );
int listen (int , int);
int rcmd( char **, u_short, char *, char *, char *, int *);
int recv(int, char *, int, int );
int recvfrom( int, char *, int, int, struct sockaddr *, int *);
int recvmsg(int, struct msghdr *, int );
int s_close (int);
STRPTR s_crypt (STRPTR, STRPTR, STRPTR);
void s_dev_list (u_long, int);
int s_dup (int);
int s_dup2 (int, int);
int s_errno (void);
BYTE s_getsignal ( UWORD );
int s_inherit( void * );
int s_ioctl ( int, int, char * );
void *s_release( int );
void s_dev_list(u_long, int);
int select( int, fd_set *, fd_set *, fd_set *, struct timeval *);
int selectwait (int, fd_set *, fd_set *, fd_set *, struct timeval *, long *);
int send (int, char *, int, int );
int sendto (int, char *, int, int, struct sockaddr *, int );
int sendmsg (int, struct msghdr *, int );
int setgid ( gid_t );
int set_h_errno ( int );
void sethostent ( int );
void setnetent ( int );
void setprotoent ( int );
void setpwent( int );
void setservent ( int );
int setuid ( uid_t );
int setsockopt ( int, int, int, char *, int );
ULONG setup_sockets ( UWORD, int * );
int shutdown (int, int);
int socket( int, int, int );
int s_syslog(int, char *);
int syslogA (int, char *, int *);
int vsyslog (int, char *, int *);
int syslog(int, char *, ...);
char *strerror( int );
mode_t umask ( mode_t );
int reconfig(void) ;
struct group *getgrgid ( gid_t );
struct group *getgrnam ( const char * );
struct group *getgrent ( void );
void setgrent ( int );
void endgrent ( void );
void ConfigureInetA( struct TagItem * );
void ConfigureInet( ULONG, ... );
#endif /* _CLIB_SOCKET_H */